<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<form id="addEditUserForm" class="dataForm" method="post" action="#">
	<input id="id" type="hidden" value="${user.id}">
	<fieldset>
		<legend>User details</legend>
		<ol>
			<li>
				<label for="name">Name</label>
				<input id="name" name="name" type="text" placeholder="first name" value="${user.name}" required/>
			</li>
			<li>
				<label for="surname">Surname</label>
				<input id="surname" name="surname" type="text" placeholder="surname" value="${user.surname}" required/>
			</li>
			<li>
				<label for="email">Email</label>
				<input id="email" name="email" type="email" placeholder="example@domain.com" value="${user.email}" required/>
			</li>
			<li>
				<label for="admin">Administrator</label>
				<input id="admin" name="admin" type="checkbox" <c:if test="${user.userRol == 'ADMIN'}">checked</c:if>>
			</li>
		</ol>
	</fieldset>
	<fieldset>
		<a id="cancel" class="button" href="#">Cancel</a>
		<a id="submit" class="button" href="#">Save</a>
	</fieldset>
</form>
